package com.shop2cn.iapi.sqdistributor.parameter.request;

import com.ymt.base.BaseBean;
import com.ymttest.utils.TestDataManager;

@SuppressWarnings("serial")
public class DistributorApplyReq extends BaseBean {
	
	private Long merchantId;
	
	private Long distributorId;
	
	private String inviteCode;
	
	private String distributorPhone;
	
	/**
	 * 系统中已经存在的分销员或者是店主
	 */
	private Long inviterId;
	
	/**
	 * 分销员类型 0:普通分销员，1：分销机构，2：CPS
	 */
	private Integer distributorType;

	public Long getMerchantId() {
		return merchantId;
	}

	public void setMerchantId(Long merchantId) {
		this.merchantId = merchantId;
	}

	public String getDistributorPhone() {
		return distributorPhone;
	}

	public void setDistributorPhone(String distributorPhone) {
		this.distributorPhone = distributorPhone;
	}

	public Long getDistributorId() {
		return distributorId;
	}

	public void setDistributorId(Long distributorId) {
		this.distributorId = distributorId;
	}

	public String getInviteCode() {
		return inviteCode;
	}

	public void setInviteCode(String inviteCode) {
		this.inviteCode = inviteCode;
	}

	public Long getInviterId() {
		return inviterId;
	}

	public void setInviterId(Long inviterId) {
		this.inviterId = inviterId;
	}

	public Integer getDistributorType() {
		return distributorType;
	}

	public void setDistributorType(Integer distributorType) {
		this.distributorType = distributorType;
	}

	public static DistributorApplyReq createStandardDistributorApply(Long merchantId) {
		
		DistributorApplyReq distributorApplyReq = new DistributorApplyReq();
		
		distributorApplyReq.setMerchantId(merchantId);
		distributorApplyReq.setInviteCode(TestDataManager.getChineseName());
		distributorApplyReq.setDistributorPhone(TestDataManager.getPhoneNum());
		distributorApplyReq.setDistributorId(34569584L);
		distributorApplyReq.setInviterId(merchantId);
		distributorApplyReq.setDistributorType(0);
		
		return distributorApplyReq;
	}
	
	public DistributorApplyReq withInviterId(Long inviterId) {
		
		this.setInviterId(inviterId);
		
		return this;
	}
	
	public DistributorApplyReq withDistributorId(Long distributorId) {
		
		this.setDistributorId(distributorId);
		
		return this;
	}
}
